import request from '@/utils/request'

// 查询工作时间距离统计列表
export function listPersonDistance(query) {
  return request({
    url: '/report/personMiles/list',
    method: 'get',
    params: query
  })
}

// 查询工作时间距离统计详细
export function getPersonDistance(workDistanceId) {
  return request({
    url: '/report/personMiles/' + workDistanceId,
    method: 'get'
  })
}

// 新增工作时间距离统计
export function addPersonDistance(data) {
  return request({
    url: '/report/personDistance',
    method: 'post',
    data: data
  })
}

// 修改工作时间距离统计
export function updatePersonDistance(data) {
  return request({
    url: '/report/personDistance',
    method: 'put',
    data: data
  })
}

// 删除工作时间距离统计
export function delPersonDistance(workDistanceId) {
  return request({
    url: '/report/personDistance/' + workDistanceId,
    method: 'delete'
  })
}
